<%@ page contentType="text/html;charset=UTF-8" language="java" import="java.util.*,dao.*,entity.*" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%
    String ids = request.getParameter("id");
    int id = Integer.parseInt(ids);
    markDao dao = new markDao();
    int row = dao.deleteById(id);
    if(row > 0) {
        request.setAttribute("msg","<script language='javascript'>alert('删除成功!');</script>");
    }
    else
    {
        request.setAttribute("msg","<script language='javascript'>alert('删除失败!');</script>");
    }
    request.getRequestDispatcher("mark.jsp").forward(request,response);
%>
</body>
</html>
